package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.DriverCommentListResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/28.
 */
public class DriverCommentListData extends CarpoolBaseData<DriverCommentListResponse>{
    private int pn;
    private int rn;
    private String carerId;

    public DriverCommentListData(Context context) {
        super(context);
    }

    public void setCarerId(String carerId) {
        this.carerId = carerId;
    }

    public void setPn(int pn) {
        this.pn = pn;
    }

    public void setRn(int rn) {
        this.rn = rn;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_USER_DRIVER_COMMENT_LIST);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String, String> params = new HashMap<String, String>();
        params.put("pn" , String.valueOf(pn));
        params.put("rn" , String.valueOf(rn));
        params.put("carerId" , carerId);
        params.put("bduss", UserInfoSetting.getBduss());
        return params;
    }
}
